/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:26554
 * Date:2024-11-02
 * Time:16:42
 */
public class Dog {
    public int age;
    public String name;
    public String color;

    public void setdog(int y,String m,String x){
        this.age = y;
        this.name = m;
        this.color = x;
    }
    public void print(){
        System.out.println("年龄:" + age + " 名字:" + name + " 颜色:" + color);
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.setdog(5,"小白","白色");
        dog.print();
    }
}
